
#include <cstdio>

#include <BDialog>
#include <BTextEdit>
#include <BVBoxLayout>
#include <BApplication>
#include <BReadWrite>

#include "ScriptStudio.h"

int main(int argc, char** argv)
{
	BApplication app;
	app.setStyleSheet("data/style/script.css");

	SetExtAlias("bsf", "osc");
	SetExtAlias("bs", "obc");
	ScriptStudio* studio = new ScriptStudio();
	//studio->setFrameless(true);
	studio->setSize(1200, 780);
	studio->show();
	if (argc > 1)
	{
		for (int i = 1; i < argc; i++)
		{
			const char* fileName = argv[i];
			studio->loadProject(fileName);
		}
	}

	return app.execute();
}